﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using AgileNYCWebService.Manager.Data;
using AgileNYCWebService.Manager.Data.Table;

namespace AgileNYCWebService
{
	// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IAgileSync" in both code and config file together.
	[ServiceContract]
	public interface IAgileSync
	{
		[OperationContract]
		[return: MessageParameter(Name = "Result")]
		[WebInvoke(Method = "POST",
			ResponseFormat = WebMessageFormat.Json,
			RequestFormat = WebMessageFormat.Json)]
		JsonResult Contacts(SyncClass syncData);

		[OperationContract]
		[return: MessageParameter(Name = "Result")]
		[WebInvoke(Method = "POST",
			ResponseFormat = WebMessageFormat.Json,
			RequestFormat = WebMessageFormat.Json)]
		JsonResult Events(SyncClass syncData);

		[OperationContract]
		[return: MessageParameter(Name = "Result")]
		[WebInvoke(Method = "POST",
			ResponseFormat = WebMessageFormat.Json,
			RequestFormat = WebMessageFormat.Json)]
		JsonResult Participants(SyncClass syncData);

		[OperationContract]
		[return: MessageParameter(Name = "Result")]
		[WebInvoke(Method = "POST",
			ResponseFormat = WebMessageFormat.Json,
			RequestFormat = WebMessageFormat.Json)]
		JsonResult Ratings(SyncClass syncData);

		[OperationContract]
		[return: MessageParameter(Name = "Result")]
		[WebInvoke(Method = "POST",
			ResponseFormat = WebMessageFormat.Json,
			RequestFormat = WebMessageFormat.Json)]
		JsonResult Users(SyncClass syncData);
	}
}
